using System;
using System.Xml;

namespace umlungu.engineX.webX.thoughts.Admin.service {
	/// <summary>
	/// umlungu engineX web framework, handlerX class.
	/// </summary>
	public class Custom : SoapX {
		/// <summary>Constructor</summary>
		public Custom() : base("service", "Custom") {
		}
		/// <summary>
		/// Method _Process:: calls delegate(s)
		/// </summary>
		protected override void _Process(XmlDocument xmldom, profileX profile, contentX content) {
			_Debug("Custom._Process(", Process, ") profile (before):", profile.Xml.InnerXml);
			_Debug("Custom._Process(", Process, ") content:", content.Xml.InnerXml);
			switch (Process) {
				case "Login":					ProcessResult(new ProcessServiceResult(Handlers.processLogin));					break;
				case "GetBlogListCustDef":		ProcessResult(new ProcessServiceResult(Handlers.processGetBlogListCustDef));	break;
				case "GetBlogListCust":
				case "GetBlogList":				ProcessResult(new ProcessServiceResult(Handlers.processGetBlogListCust));		break;
				
				case "SetBlogspace_Custom":
				case "SetBlogspace":	
				default:						ProcessResult(new ProcessServiceResult(Handlers.processSetBlogspace));			break;
			}
			_Debug("Custom._Process(", Process, ") profile (after):", profile.Xmldoc.OuterXml);
		}
	}
}
		
